package com.plant.tool;




public class BuildString {//--将数组 变成String类型 字符串
	public String StringBuilder(String[] ids){
		 	String str ="";  
		    if (ids != null && ids.length >0) {  
		        for (int i = 0; i < ids.length; i++) {  
		            str += ids[i]+",";  
		        }  
		    }  
		    str = str.substring(0, str.length() - 1);  
		    System.out.println(str);
		return str;
	}
	public static String stringBuilder(String[] ids){
		String str ="";  
		if (ids != null && ids.length >0) {  
			for (int i = 0; i < ids.length; i++) {  
				str += ids[i]+",";  
			}  
		}  
		str = str.substring(0, str.length() - 1);  
		System.out.println(str);
		return str;
	}
}
